]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceThumbnail: Clean up porthole/workarea setting and updating
authorverdre <verdre@v0yd.nl>
Fri, 11 Jan 2019 22:50:09 +0000 (23:50 +0100)
committerverdre <verdre@v0yd.nl>
Wed, 30 Jan 2019 09:07:14 +0000 (10:07 +0100)
commitf6da36ad3a660ddc8e1378ce36103820168ec80d
treef3cbf9ae0ddbe47a22dd4ef404bcef1ab9a3c969
parent5f4e2749a2923d990bb8848905583f51cfa1722a
workspaceThumbnail: Clean up porthole/workarea setting and updating

Instead of unnecessarily updating the porthole on every call to the
layout vfuncs and returning widths and heights of 0 when the overview is
hidden, only update it on actual workarea changes.

Also use the stage size for the porthole in case no monitor is available
to make sure we don't try to allocate a 0-sized box.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/892, https://gitlab.gnome.org/GNOME/gnome-shell/issues/517

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/343
js/ui/workspaceThumbnail.js